(function(){ 
    CKEDITOR.plugins.add('datadetails',{ 
        init:function(editor){ 
            CKEDITOR.dialog.add('datadetailsDialog', this.path + 'dialogs/datadetails.js');
            editor.addCommand('datadetails', new CKEDITOR.dialogCommand('datadetailsDialog')); 
            editor.ui.addButton('datadetails',{ label:'添加多行数据属性', command:'datadetails',icon: this.path + 'datadetails.png'})

            // if(editor.contextMenu){
            //     editor.contextMenu.addListener(function(element) {
            //             console.log(element)
            //       })
            // }
        } 
    }); 
})()